package com.design.访问者模式;

public class VisitorA implements Visitor {

	@Override
	public void visit(NodeA a) {
		System.out.println("VisitorA访问："+a.operationA());

	}

	@Override
	public void visit(NodeB b) {
		System.out.println("VisitorB访问："+b.operationB());

	}

}
